<?php
/**
 * Created by JetBrains PhpStorm.
 * User: zhouyang
 * Date: 13-9-15
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */
class TrendsModel extends Model{
    //根据trend_id 获取trend 信息
    public function get($trend_id){
        return $this->dbreader()->get($trend_id);
    }

    //获取trend 列表<带分页>
    public function getTrendList($num = 30){
        return $this->dbreader()->getTrendList($num);
    }
}